<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="allstu.js"></script>
    <title>显示所有国家信息</title>
    <link rel="stylesheet" type="text/css" href="allstu.css">
    <style>
        input[type=submit] {
            width: 98%;
            background-color: rgba(153, 153, 153, 0.1);
            color: white;
            height: 50px;
            /*padding: 14px 20px;*/
            /*margin: 8px 0;*/
            /*margin-left: 30%;*/
            /*border: solid;*/
            /*border-radius: 4px;*/
            /*cursor: pointer;*/
            /*border-color: red;*/
        }

        input[type=submit]:hover {
            background-color: rgba(189, 189, 189, 0.2);
        }




        h1{
            text-align: center;
            color: rgb(215,253,249);
        }
        body{
            background-color: rgb(255,157,168);//#cecece;
        }
        .change{
            /*color: rgb(215,253,249);*/
            /*text-decoration: none;*/
            background-color: rgba(0,0,0,0.01);
        }
        table{
            /*border: solid;*/
            /*solid-color: red;*/
        }
        tr{

        }
        td{
            background-color:rgba(232,229,238,0.5);
            /*margin: 100px 5px ;*/
            width: 160px;
            text-align: center;
        }
        /*input[type="checkbox"]{*/
        /*    background-color: red;*/
        /*}*/
        input[type="text"]{
            background: rgba(0,0,0,0.01);
            text-align: center;
        }


    </style>
</head>

<body>
<table class="hoverable" align="center">
    <tr>
<%--        <td><input type="checkbox" onclick="allcheck(this);" style="background-color: yellow"></td>--%>
        <td>国家编号</td>
        <td>国家名字</td>
        <td>国家密码</td>
        <td>国家权限</td>
        <td>国家人口总数</td>
        <td>isdelete</td>
        <td></td>
<%--        <td><input type="button" value="批量删除" style="width: 100px" class="change" onclick="delall();"></td>--%>
    </tr>
    <c:forEach var="cou" items="${allCou}">
        <tr>
<%--            <td><input type="checkbox" name="check" value=${cou.getCountry_id()}></td>--%>
            <td>${cou.country_id}</td>
            <td>${cou.country_name}</td>
            <td>${cou.password}</td>
            <td>${cou.vac_able}</td>
            <td>${cou.people}</td>
            <td>${cou.isdelete}</td>
            <td>
                    <%--            <a href="updateStu.jsp?sid=<%=s.getCountry_id()%>" class="change">修改</a>--%>
                <input type="button" value="修改" onClick="location.href='/country/toUpdateInfotoCountryByCountry_id?country_id=${cou.country_id}'"class="change"/>
                    <%--                 <a href="deleteStu?sid=<%=s.getCountry_id()%>"class="change">删除</a>--%>
                <input type="button" value="删除" onClick="location.href='/country/deleteCountryByCountry_id?country_id=${cou.country_id}'"class="change"/>
            </td>
        </tr>
    </c:forEach>

</table>
</body>
</html>
